#pragma once
#include "InOut.h"

#include <IValue.h>

const double DEFAULT_WINRATE = 0.5;

class WinRate : public ExperientialSystem::IValue
{
	double _winrate;

public:
	WinRate();
	WinRate(const double winrate);
	~WinRate();

	virtual void Update(const IValue* value);

	virtual int Compare(const IValue* value);

	virtual IValue* Clone() const;

	double GetWinRate() const { return _winrate; }

	virtual void Write(ofstream& out) const;

	virtual void Read(ifstream& in) ;

};

